from fastapi import APIRouter, Request
from fastapi.templating import Jinja2Templates
from fastapi.responses import JSONResponse

sales_data = APIRouter()


data1=[120, 132, 101, 134, 90, 230]
data2=[220, 182, 191, 234, 290, 330]
data3= [150, 232, 201, 154, 190, 330]
data4= [320, 332, 301, 334, 390, 330]
data5=[820, 932, 901, 934, 1290, 1330]
data6= [620, 952, 921, 954, 1090, 1130]

data_1=[[120, 132, 101, 134, 90, 230],
      [220, 182, 191, 234, 290, 330],
      [150, 232, 201, 154, 190, 330],
    [320, 332, 301, 334, 390, 330],
    [820, 932, 901, 934, 1290, 1330],
    [620, 952, 921, 954, 1090, 1130]]



@sales_data.get("/getdata2")
async def get_data_2():

    result = data_1

    return JSONResponse(result)

